</div>
<div id="footer">
	<div class="footer_text_left">	
	</div>
	<div class="footer_text_right">		
	</div>
</div>
<?php 
$error = "";

if (isset($_SESSION['ERRORMESSAGE'])){
	$error = $_SESSION['ERRORMESSAGE'];
	$_SESSION['ERRORMESSAGE'] = "";
}

if ($error != ""){
	echo "<script type='text/javascript'>		
			displayErrorMessage('" . str_replace("'",'"',$error) . "');
	</script>";
}

$success = "";

if (isset($_SESSION['SUCCESSMESSAGE'])){
	$success = $_SESSION['SUCCESSMESSAGE'];
	$_SESSION['SUCCESSMESSAGE'] = "";
}

if ($success != ""){
	echo "<script type='text/javascript'>
		var successDiv = document.getElementById('successMessage');
		if(successDiv){
			successDiv.innerHTML = '" . str_replace("'",'"',$success) . "'
			successDiv.style.display = '';
			$('#message').slideDown(1000);
			setTimeout(\"$('#message').slideUp(1000);\", 20000);
		}
	</script>";
}

// register some variables in js to use for the language.
?>
<script type="text/javascript">
	var language = new Array();
	language["generic:error:message"] = '<?php echo langEcho("generic:error:message")?>';
</script>

</body>
</html>